N-ary associativity